package com.example.javaee.dao;

import com.example.javaee.entity.Goods;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName BookMapper
 * @Description
 * @Author 杨理欢
 * @Date 2021/11/16 14:39
 * @Version V1.0
 */
@Mapper
public interface GoodsMapper {
    List<Goods> findAllGoods();

    List<Goods> findFuzzyGoods(String keywords);

    int updateGoods(Goods goods);

    int deleteGoods(int id);

    int addGoods(Goods goods);

    List<Goods> ascAllGoods();

    List<Goods> descAllGoods();

    List<Goods> wxFindAllGoods();
    List<Goods> wxAscAllGoods();

    List<Goods> wxDescAllGoods();
}
